import Layout from '@/views/layout/Layout'

const ROLES = ['admin', 'hr', 'manage']

const interview = {
  path: '/interview',
  component: Layout,
  name: 'interview',
  meta: {
    title: '面试管理',
    icon: 'documentation',
    roles: ROLES
  },
  children: [
    {
      path: 'waiting-interview',
      component: () => import('@/views/interview/waitingInterview2'),
      name: 'waiting-interview',
      meta: { title: '待面试', icon: 'documentation', roles: ROLES }
    },
    {
      path: 'first-interview',
      component: () => import('@/views/interview/firstInterview'),
      name: 'first-interview',
      meta: { title: '一面管理', icon: 'documentation', roles: ROLES }
    },
    {
      path: 'waiting-second',
      component: () => import('@/views/interview/waitingSecond'),
      name: 'waiting-second',
      meta: { title: '待二面', icon: 'documentation', roles: ROLES }
    },
    {
      path: 'second-interview',
      component: () => import('@/views/interview/secondInterview'),
      name: 'second-interview',
      meta: { title: '二面管理', icon: 'documentation', roles: ROLES }
    },
    {
      path: 'waiting-hr',
      component: () => import('@/views/interview/waitingHr'),
      name: 'waiting-hr',
      meta: { title: '待HR终面', icon: 'documentation', roles: ROLES }
    },
    {
      path: 'hr-interview',
      component: () => import('@/views/interview/hrInterview'),
      name: 'hr-interview',
      meta: { title: 'HR终面', icon: 'documentation', roles: ROLES },
      children: [
        {
          path: 'a',
          component: () => import('@/views/interview/hrInterview-a'),
          name: 'hr-interview-status-a',
          meta: { title: '谈薪状态', icon: 'documentation', roles: ROLES }
        },
        {
          path: 'b',
          component: () => import('@/views/interview/hrInterview-b'),
          name: 'hr-interview-status-b',
          meta: { title: '体检状态', icon: 'documentation', roles: ROLES }
        },
        {
          path: 'c',
          component: () => import('@/views/interview/hrInterview-c'),
          name: 'hr-interview-status-c',
          meta: { title: 'OFFER状态', icon: 'documentation', roles: ROLES }
        }
      ]
    },
    {
      path: 'success',
      component: () => import('@/views/interview/offerSuccess'),
      name: 'hr-interview-success',
      meta: { title: '已录用', icon: 'documentation', roles: ROLES }
    }
  ]
}

export default interview
